#include<iostream>
#include "../skiplist.h"

#define FILE_PATH "../store/dumpFile"
using namespace std;

int main() {
    SkipList<int, std::string> skipList(6);
    
    skipList.insert_element(1, "这是");
    skipList.insert_element(2, "一个");
    skipList.insert_element(4, "基于");
    skipList.insert_element(9, "跳表结构");
    skipList.insert_element(12, "的");
    skipList.insert_element(16, "数据库");

    std::cout << "skipList size:" << skipList.size() << std::endl;

    skipList.dump_file();


    skipList.search_element(9);
    skipList.search_element(17);


    return 0;
}